var obj = {
    id:1001,
    name:'tom',
    age:'12',
    friends:['fairy','terry','larry'],
    clazz:{
        id:1,
        name:'1班',
        desc:'已经有50个同学'
    }
}
console.log(obj);
console.log(obj.name);
console.log(obj.class.name);
console.log(obj.friends[0]);